package org.example.ctsbocc.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 测试记录实体类
 * 用于存储测试执行的详细记录和结果
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class TestRecord {
    private Long testId;

    private Long projectId;

    private Long commitId;

    private TestType testType;

    @Builder.Default
    private Integer totalTests = 0;

    @Builder.Default
    private Integer passedTests = 0;

    @Builder.Default
    private Integer failedTests = 0;

    private TestStatus status;

    private LocalDateTime startTime;

    private LocalDateTime endTime;

    private BigDecimal executionTime;

    private String logPath;

    private String branch;

    private LocalDateTime createdAt;
}